<div class="sidebar" id="sidebar">

    <script type="text/javascript">

        try{gds.settings.check('sidebar' , 'fixed')}catch(e){}

    </script>

    <ul id="menuNav" class="nav nav-list">

        <li>
            <a th:href="@{/enroll/apps}">
                <i class="icon-desktop"></i>
                <span class="menu-text"> 应用注册 </span>
            </a>

        </li>
        <li>
            <a th:href="@{/enroll/interfaces}">

                <i class="icon-sitemap"></i>

                <span class="menu-text">接口注册 </span>
            </a>
        </li>
    </ul><!-- /.nav-list -->



    <div class="sidebar-collapse" id="sidebar-collapse" onclick="sidebarClick()">

        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>

    </div>

    <script type="text/javascript">


        try{gds.settings.check('sidebar' , 'collapsed')}catch(e){}

        sidebarClick = function () {
            var c=$("#sidebar").hasClass("menu-min");
            gds.settings.sidebar_collapsed(!c);
        }

        showSubMenu = function (id) {
            $("#" + id).toggle();
        }

        $(document).ready(function () {
           var currPath = window.location.pathname;
           $("#menuNav li").each(function (a,b) {
               $(this).removeClass('active');
               if($(b).find('a').attr('href') == currPath) {
                   $(b).find('a').parents("#menuNav > li").addClass('active');
               }
           })
        });
    </script>

</div>